package com.github.niefy.modules.wx.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.niefy.modules.wx.entity.AnimalNews;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AnimalNewsMapper extends BaseMapper<AnimalNews> {

    int addBlog(@Param("blog") AnimalNews blog);

    int deleteBlog(@Param("id") long id);

    int editBlog(@Param("blog") AnimalNews blog);



   /* int countBlogs(@Param("req") QueryBlogReq req);

    int likeBlog(@Param("id") long id);

    int cancelBlog(@Param("id") long id);

    List<BlogInfo> getLikeBlogs(@Param("req") QueryBlogReq req);

    int countLikeBlogs(@Param("req") QueryBlogReq req);

    *//**
     * 查询最热门的blog
     *//*
    List<SimpleBlogVo> getHotBlog();

    *//**
     * 查询最新博客
     *//*
    List<SimpleBlogVo> getNewBlog();*/
}
